package com.galen.manual.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

@Data
@Schema(description = "任务更新请求")
public class TaskUpdateDTO {

    @Schema(description = "完成数量")
    @Min(value = 0, message = "完成数量不能小于0")
    private Integer completedQuantity;

    @Schema(description = "剩余配件说明")
    @Size(max = 500, message = "剩余配件说明长度不能超过500个字符")
    private String remainingMaterials;

    @Schema(description = "完成图片URLs，多个用逗号分隔")
    private String completionImages;

    @Schema(description = "备注")
    @Size(max = 500, message = "备注长度不能超过500个字符")
    private String remark;
}